<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: LRUCache&lt; KeyT, CacheItemT &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_l_r_u_cache.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_l_r_u_cache-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">LRUCache&lt; KeyT, CacheItemT &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a2608a2881e75cb6bfe1a756bd89d7200"><td class="memItemLeft" align="right" valign="top"><a id="a2608a2881e75cb6bfe1a756bd89d7200"></a>
typedef std::list&lt; KeyT &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>KeyIndex</b></td></tr>
<tr class="separator:a2608a2881e75cb6bfe1a756bd89d7200"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3400fe6996434c5734873aca0318a279"><td class="memItemLeft" align="right" valign="top"><a id="a3400fe6996434c5734873aca0318a279"></a>
typedef KeyIndex::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>KeyIndexIterator</b></td></tr>
<tr class="separator:a3400fe6996434c5734873aca0318a279"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4de256fa009ad24a5070368cb7f1e7bb"><td class="memItemLeft" align="right" valign="top"><a id="a4de256fa009ad24a5070368cb7f1e7bb"></a>
typedef std::map&lt; KeyT, std::pair&lt; CacheItemT, typename KeyIndex::iterator &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Cache</b></td></tr>
<tr class="separator:a4de256fa009ad24a5070368cb7f1e7bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4003b6ef7dd56a45b22d274ae3888a3d"><td class="memItemLeft" align="right" valign="top"><a id="a4003b6ef7dd56a45b22d274ae3888a3d"></a>
typedef Cache::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>CacheIterator</b></td></tr>
<tr class="separator:a4003b6ef7dd56a45b22d274ae3888a3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a7cc532cb2a7b59b42d137a6e6d84ad90"><td class="memItemLeft" align="right" valign="top"><a id="a7cc532cb2a7b59b42d137a6e6d84ad90"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>LRUCache</b> (size_t c)</td></tr>
<tr class="separator:a7cc532cb2a7b59b42d137a6e6d84ad90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a159be4370b1641da09dca80973f0327f"><td class="memItemLeft" align="right" valign="top"><a id="a159be4370b1641da09dca80973f0327f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>hasKey</b> (const KeyT &amp;k)</td></tr>
<tr class="separator:a159be4370b1641da09dca80973f0327f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa82467f57955e52020a7c26b0510df94"><td class="memItemLeft" align="right" valign="top"><a id="aa82467f57955e52020a7c26b0510df94"></a>
CacheItemT &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>get</b> (const KeyT &amp;k)</td></tr>
<tr class="separator:aa82467f57955e52020a7c26b0510df94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55266cf5d77336a159cca1d5020ee101"><td class="memItemLeft" align="right" valign="top"><a id="a55266cf5d77336a159cca1d5020ee101"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>touch</b> (const KeyT &amp;key)</td></tr>
<tr class="separator:a55266cf5d77336a159cca1d5020ee101"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a071553bc4998d83fa872f3269a339b76"><td class="memItemLeft" align="right" valign="top"><a id="a071553bc4998d83fa872f3269a339b76"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>insert</b> (const KeyT &amp;key, const CacheItemT &amp;value)</td></tr>
<tr class="separator:a071553bc4998d83fa872f3269a339b76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3546c21e638a3e2b8c1bc701f95b60ff"><td class="memItemLeft" align="right" valign="top"><a id="a3546c21e638a3e2b8c1bc701f95b60ff"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setCapacity</b> (size_t capacity)</td></tr>
<tr class="separator:a3546c21e638a3e2b8c1bc701f95b60ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf8226fea4e5b65f5231561b00dd915e"><td class="memItemLeft" align="right" valign="top"><a id="aaf8226fea4e5b65f5231561b00dd915e"></a>
CacheItemT &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>tailItem</b> ()</td></tr>
<tr class="separator:aaf8226fea4e5b65f5231561b00dd915e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f8be136071836e20dd507161ea73cd0"><td class="memItemLeft" align="right" valign="top"><a id="a3f8be136071836e20dd507161ea73cd0"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>sizeOf</b> (const CacheItemT &amp;value)</td></tr>
<tr class="separator:a3f8be136071836e20dd507161ea73cd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab67d50307bfc661fbef234eca6a0ad19"><td class="memItemLeft" align="right" valign="top"><a id="ab67d50307bfc661fbef234eca6a0ad19"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>evict</b> (int item_count=1)</td></tr>
<tr class="separator:ab67d50307bfc661fbef234eca6a0ad19"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a34e41053b4dd18a4d495989397dfa48c"><td class="memItemLeft" align="right" valign="top"><a id="a34e41053b4dd18a4d495989397dfa48c"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>capacity_</b></td></tr>
<tr class="separator:a34e41053b4dd18a4d495989397dfa48c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04c5b690aaa9c89674142705d2282d6c"><td class="memItemLeft" align="right" valign="top"><a id="a04c5b690aaa9c89674142705d2282d6c"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>size_</b></td></tr>
<tr class="separator:a04c5b690aaa9c89674142705d2282d6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dd8d1a70adc93067461e18041891495"><td class="memItemLeft" align="right" valign="top"><a id="a5dd8d1a70adc93067461e18041891495"></a>
KeyIndex&#160;</td><td class="memItemRight" valign="bottom"><b>key_index_</b></td></tr>
<tr class="separator:a5dd8d1a70adc93067461e18041891495"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0e8775ad21d826842b0126b94bfde01"><td class="memItemLeft" align="right" valign="top"><a id="ad0e8775ad21d826842b0126b94bfde01"></a>
Cache&#160;</td><td class="memItemRight" valign="bottom"><b>cache_</b></td></tr>
<tr class="separator:ad0e8775ad21d826842b0126b94bfde01"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>该类的文档由以下文件生成:<ul>
<li>outofcore/include/pcl/outofcore/impl/<a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_l_r_u_cache.html">LRUCache</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
